package task;

import calendar.ATime;

/**
 * Date: 27.10.11
 * Time: 20:05
 *
 * @author pavel
 */
public class Task {

    private ATime time;

    private int minuteStart;
    private int minuteEnd;

    private int importance; //0 to 10

    private Category category;

    private boolean isFinished;

    private String description;

    public Task(ATime time, int minuteStart, int minuteEnd, int importance, Category category, boolean finished, String description) {
        this.time = time;
        this.minuteStart = minuteStart;
        this.minuteEnd = minuteEnd;
        this.importance = importance;
        this.category = category;
        isFinished = finished;
        this.description = description;
    }

    public Task(String description) {
        this.description = description;
    }

    public ATime getTime() {
        return time;
    }

    public void setTime(ATime time) {
        this.time = time;
    }

    public int getMinuteStart() {
        return minuteStart;
    }

    public void setMinuteStart(int minuteStart) {
        this.minuteStart = minuteStart;
    }

    public int getMinuteEnd() {
        return minuteEnd;
    }

    public void setMinuteEnd(int minuteEnd) {
        this.minuteEnd = minuteEnd;
    }

    public int getImportance() {
        return importance;
    }

    public void setImportance(int importance) {
        this.importance = importance;
    }

    public Category getCategory() {
        return category;
    }

    public void setCategory(Category category) {
        this.category = category;
    }

    public boolean isFinished() {
        return isFinished;
    }

    public void setFinished(boolean finished) {
        isFinished = finished;
    }

    @Override
    public String toString() {
        return description;
    }
}
